package  com.wxmp.userwechat.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.wxmp.userwechat.domain.SysUserNotifyEntity;
import com.wxmp.userwechat.mapper.SysUserNotifyMapper;
import com.wxmp.userwechat.service.SysUserNotifyService;

@Component("sysUserNotifyService")
/**
 * 用户管理Manager
 * @author song.wang
 * @date 2019年1月21日
 */
public class SysUserNotifyServiceImpl implements SysUserNotifyService {

	@Autowired
	private SysUserNotifyMapper sysUserNotifyMapper;
	

	@Override
	public int updateUserNotify(SysUserNotifyEntity notify) {
		return sysUserNotifyMapper.update(notify);
	}

	@Override
	public SysUserNotifyEntity getUserNotify(Long userId) {
		return sysUserNotifyMapper.getObjectById(userId);
	}

}
